<?php
header("Content-Type: text/css");

$gutter	= 15;
$col 		= 64;

/*
------------------------------------------*/

function calcgrid($gutter, $col, $num) {
	$size = ((($col+$gutter)*$num)-$gutter);
	return $size; 
}

echo "
.col {
	margin-right: ".$gutter."px;
	float: left;
}";

$n=1;

echo "
.one	  	{ width: "; echo calcgrid($gutter, $col, $n)."px; }
.two 	 	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.three		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.four		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.five	  	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.six	  	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.seven  	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.eight  	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.nine		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.ten		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.eleven		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.twelve		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.thirteen	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.fourteen	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.fifteen		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.sixteen		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.seventeen	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.eighteen	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.nineteen	{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }
.twenty		{ width: "; echo calcgrid($gutter, $col, $n=$n+1)."px; }

.last {
	margin-right: 0 !important;
}
";

?>